<template>
	<view>
		<view class="about-t">
			<view class="line_title" style="font-size: 50rpx;font-weight: bold;">
				微企付
			</view>
			<view class="line_title">
				Micro payment
			</view>
		</view>
	   
		<view class="cu-list menu"style="border-top: 1px solid #e9dfdf;" >
			<!-- <view class="cu-item cuIcon-right-after" @tap="goinformation()" >
				<view class="content">
					<text class="text-grey">特别说明</text>
				</view>
				<view class="action cuIcon-right-after" style="color: #666666;">
				</view>
			</view> -->
		<!-- 	<view class="cu-item cuIcon-right-after"  @tap="gohelp()">
				<view class="content">
					<text class="text-grey">使用帮助</text>
				</view>
				<view class="action cuIcon-right-after" style="color: #666666;">
					
				</view>
			</view> -->
			<!-- <view class="cu-item cuIcon-right-after"  @tap="goplicy()" >
				<view class="content">
					<text class="text-grey">隐私政策</text>
				</view>
				<view class="action cuIcon-right-after">
				
				</view>
			</view> -->
			<view class="cu-item cuIcon-right-after" >
				<view class="content">
					<text class="text-grey">版本号</text>
				</view>
				<view class="action ">
				    Version {{version}}
				</view>
			</view>
			
			<!-- <view class="cu-item cuIcon-right-after" >
				<view class="content">
					<text class="text-grey">关于我们</text>
				</view>
				<view class="action cuIcon-right-after">
				
				</view>
			</view> -->
		</view>	
	</view>
</template>

<script>
	import httpPath from '@/static/js/path.js';
	import {getlogin} from '@/static/js/login.js';
     
	export default {
		data() {
			return {
			   version:"1.0"
			}
		},
	    onPageScroll(e) {
	    	//兼容iOS端下拉时顶部漂移
	    	this.headerPosition = e.scrollTop>=0?"fixed":"absolute";
	    	this.headerTop = e.scrollTop>=0?null:0;
	    	this.statusTop = e.scrollTop>=0?null:-this.statusHeight+'px';
	    },
		onShow() {
			this.user = getlogin();
			if(!this.user.islogin){
				uni.showModal({
				   showCancel:false,
				   content:"您还没有登录，请登录"
				})
				uni.navigateTo({
					url:"../public/login"
				})
			}
			 this.version=plus.runtime.version
		},
		onLoad() {
			this.user = getlogin();
			if(!this.user.islogin){
				uni.showModal({
				   showCancel:false,
				   content:"您还没有登录，请登录"
				})
				uni.navigateTo({
					url:"../public/login"
				})
			}
			 this.version=plus.runtime.version
		},
		methods: {
	       goinformation(){
			   uni.navigateTo({
			   	url:"information"
			   })
		   }, gohelp(){
			   uni.navigateTo({
			   	url:"help"
			   })
		   }, goplicy(){
			   uni.navigateTo({
			   	url:"policy"
			   })
		   },
	      
		}
	}
</script>

<style lang="scss">
	@import "../../colorui/main.css";
	.page {
		height: 100Vh;
		width: 100vw;
	}
	.about-t{margin: 100rpx 0px 150rpx;}
	.about-t .line_title{color: #333;}
	.cuIcon-right-after:after {
		content: "\e6a3";
		font-size: 16px;
		color: #666666;
	}
    .text-grey{font-size: 14px;color: #666666;}
	.touxiang{width: 100%;height:100%;border-radius:50%;}

</style>
